package com.yun.algorithmproblem.leetcode;

import java.util.Arrays;

public class Leetcode2683 {

    public static void main(String[] args) {
        int[] derived = {1, 1, 0};
        Leetcode2683 obj = new Leetcode2683();
        System.out.println(obj.doesValidArrayExist(derived));
    }

    public boolean doesValidArrayExist(int[] derived) {
        return Arrays.stream(derived).sum() % 2 == 0;
    }
}
